<!-- Category-->
<div id="prdCategory" class="top-gap-15">
<div class="block-top common-bg">Gian hàng</div>
<ul id="vmenu" class="category-menu dropdown">
        <?php foreach ($categories as $category) { ?>
            <li>
              <?php if ($category['category_id'] == $category_id) { ?>
              <a href="<?php echo $category['href']; ?>" class="parent active"><?php echo $category['name']; ?></a>
              <?php } else { ?>
              <a href="<?php echo $category['href']; ?>" class="parent"><?php echo $category['name']; ?></a>
              <?php } ?>
              <?php if ($category['children']) { ?>
              <ul class="sub-menu">
                <?php foreach ($category['children'] as $child) { ?>
                <li>
                  <?php if ($child['category_id'] == $child_id) { ?>
                  <a href="<?php echo $child['href']; ?>" class="active"><?php echo $child['name']; ?></a>
                  <?php } else { ?>
                  <a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a>
                  <?php } ?>
                </li>
                <?php } ?>
              </ul>
              <?php } ?>
            </li>
            <?php } ?>
       
    </ul> 
     <div class="block-btm common-bg"></div>
</div>
<!-- /Category-->